﻿/*
* 创建者：LIYINFAI
* 创建时间：2023/10/24 9:35:26
* 描述：
* --------------------------------------
* 修改说明：
* --------------------------------------
*/
using CommonLibrary.Resources;
using System;
using System.Drawing;
using System.Drawing.Text;

namespace CommonLibrary
{
    /// <summary>
    /// 字体操作类
    /// </summary>
    public class FontHelper
    {
        private static PrivateFontCollection FONTCOLLECTION = null;
        private static void LoadIconFont()
        {
            FONTCOLLECTION = new PrivateFontCollection();
            byte[] fontData = Resource.iconfont;
            unsafe
            {
                fixed (byte* pFontData = fontData)
                {
                    FONTCOLLECTION.AddMemoryFont((IntPtr)pFontData, fontData.Length);
                }
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        public static void Init()
        {
            if (FONTCOLLECTION == null)
            {
                LoadIconFont();
            }
        }
        /// <summary>
        /// 获取字体
        /// </summary>
        /// <returns></returns>
        public static FontFamily GetFont()
        {
            Init();
            return FONTCOLLECTION.Families[0];
        }
        /// <summary>
        /// 转向
        /// </summary>
        public const string TURN = "\uE66C";
        /// <summary>
        /// 转向
        /// </summary>
        public const string CHANGE = "\uE66D";
        /// <summary>
        /// 忽略
        /// </summary>
        public const string IGNORE1 = "\uE656";
        /// <summary>
        /// 忽略
        /// </summary>
        public const string IGNORE2 = "\uE73A";
        /// <summary>
        /// 聊天
        /// </summary>
        public const string CHAT1 = "\uE662";
        /// <summary>
        /// 忽略
        /// </summary>
        public const string IGNORE3 = "\uE8A6";
        /// <summary>
        /// 聊天
        /// </summary>
        public const string CHAT2 = "\uE663";
        /// <summary>
        /// 聊天
        /// </summary>
        public const string CHAT3 = "\uE664";
        /// <summary>
        /// 忽略
        /// </summary>
        public const string IGNORE4 = "\uE666";
        /// <summary>
        /// 聊天
        /// </summary>
        public const string CHAT4 = "\uE668";
        /// <summary>
        /// 聊天
        /// </summary>
        public const string CHAT5 = "\uE8BD";
        /// <summary>
        /// 聊天
        /// </summary>
        public const string CHAT6 = "\uE66B";
        /// <summary>
        /// 聊天
        /// </summary>
        public const string CHAT7 = "\uE817";
        /// <summary>
        /// 扫码
        /// </summary>
        public const string SCAN1 = "\uE651";
        /// <summary>
        /// 扫码
        /// </summary>
        public const string SCAN2 = "\uE653";
        /// <summary>
        /// 扫码
        /// </summary>
        public const string SCAN3 = "\uE669";
        /// <summary>
        /// 扫码
        /// </summary>
        public const string SCAN4 = "\uE654";
        /// <summary>
        /// 扫码
        /// </summary>
        public const string SCAN5 = "\uE655";
        /// <summary>
        /// 打印
        /// </summary>
        public const string PRINT1 = "\uE64C";
        /// <summary>
        /// 打印
        /// </summary>
        public const string PRINT2 = "\uE9BD";
        /// <summary>
        /// 打印
        /// </summary>
        public const string PRINT3 = "\uE9C3";
        /// <summary>
        /// 打印
        /// </summary>
        public const string PRINT4 = "\uE931";
        /// <summary>
        /// 打印
        /// </summary>
        public const string PRINT5 = "\uE932";
        /// <summary>
        /// 打印
        /// </summary>
        public const string PRINT6 = "\uE933";
        /// <summary>
        /// 打印
        /// </summary>
        public const string PRINT7 = "\uE650";
        /// <summary>
        /// 首页
        /// </summary>
        public const string HOME1 = "\uE6B8";
        /// <summary>
        /// 首页
        /// </summary>
        public const string HOME2 = "\uE697";
        /// <summary>
        /// 首页
        /// </summary>
        public const string HOME3 = "\uE69B";
        /// <summary>
        /// 盒子
        /// </summary>
        public const string BOX1 = "\uE731";
        /// <summary>
        /// 盒子
        /// </summary>
        public const string BOX2 = "\uE718";
        /// <summary>
        /// 盒子
        /// </summary>
        public const string BOX3 = "\uE64B";
        /// <summary>
        /// 分析
        /// </summary>
        public const string ANALYSIS1 = "\uE645";
        /// <summary>
        /// 旗帜
        /// </summary>
        public const string FAG = "\uE646";
        /// <summary>
        /// 木鱼
        /// </summary>
        public const string MUYU = "\uE65D";
        /// <summary>
        /// 拼多多
        /// </summary>
        public const string PINDUODUO = "\uE8DF";
        /// <summary>
        /// 否
        /// </summary>
        public const string NO = "\uE63D";
        /// <summary>
        /// 是
        /// </summary>
        public const string YES = "\uE63E";
        /// <summary>
        /// 疑问
        /// </summary>
        public const string QUESTION = "\uE64E";
        /// <summary>
        /// 文件夹
        /// </summary>
        public const string FOLDER1 = "\uE628";
        /// <summary>
        /// 太阳
        /// </summary>
        public const string SUN1 = "\uE62A";
        /// <summary>
        /// 下雨
        /// </summary>
        public const string RAIN = "\uE62B";
        /// <summary>
        /// 设置
        /// </summary>
        public const string SETTING1 = "\uE860";
        /// <summary>
        /// 设置
        /// </summary>
        public const string SETTING2 = "\uE635";
        /// <summary>
        /// 金融
        /// </summary>
        public const string HUABEIZHANGDAN = "\uE8AF";
        /// <summary>
        /// SD
        /// </summary>
        public const string SD = "\uE63A";
        /// <summary>
        /// 太阳
        /// </summary>
        public const string SUN2 = "\uE78B";
        /// <summary>
        /// 文件夹
        /// </summary>
        public const string FOLDER2 = "\uEC17";
        /// <summary>
        /// 文件
        /// </summary>
        public const string FILE = "\uEAC4";
        /// <summary>
        /// 安全
        /// </summary>
        public const string SAFE1 = "\uE875";
        /// <summary>
        /// 加速器
        /// </summary>
        public const string GUANGYUWANGJIASUQI = "\uE65C";
        /// <summary>
        /// 发送
        /// </summary>
        public const string SEND = "\uE613";
        /// <summary>
        /// 电脑
        /// </summary>
        public const string COMPUTER = "\uE627";
        /// <summary>
        /// CPU
        /// </summary>
        public const string CPU1 = "\uE633";
        /// <summary>
        /// 机器
        /// </summary>
        public const string MACHINE1 = "\uE625";
        /// <summary>
        /// 机器
        /// </summary>
        public const string MACHINE2 = "\uE622";
        /// <summary>
        /// CPU
        /// </summary>
        public const string CPU2 = "\uE61A";
        /// <summary>
        /// 机器
        /// </summary>
        public const string MACHINE3 = "\uE61E";
        /// <summary>
        /// 机器
        /// </summary>
        public const string MACHINE4 = "\uE61F";
        /// <summary>
        /// GPU
        /// </summary>
        public const string GPU = "\uE61B";
        /// <summary>
        /// 在线
        /// </summary>
        public const string ONLINE = "\uE619";
        /// <summary>
        /// 离线
        /// </summary>
        public const string OFFLINE1 = "\uE616";
        /// <summary>
        /// 离线
        /// </summary>
        public const string OFFLINE2 = "\uE624";
        /// <summary>
        /// 离线
        /// </summary>
        public const string OFFLINE3 = "\uE6B0";
        /// <summary>
        /// 删除
        /// </summary>
        public const string DELETE1 = "\uE68C";
        /// <summary>
        /// 删除
        /// </summary>
        public const string DELETE2 = "\uE68E";
        /// <summary>
        /// 删除
        /// </summary>
        public const string DELETE3 = "\uE621";
        /// <summary>
        /// 删除
        /// </summary>
        public const string DELETE4 = "\uE65B";
        /// <summary>
        /// 删除
        /// </summary>
        public const string DELETE5 = "\uEB83";
        /// <summary>
        /// 增加
        /// </summary>
        public const string ADD1 = "\uE605";
        /// <summary>
        /// 增加
        /// </summary>
        public const string ADD2 = "\uE607";
        /// <summary>
        /// 增加
        /// </summary>
        public const string ADD3 = "\uE696";
        /// <summary>
        /// 增加
        /// </summary>
        public const string ADD4 = "\uE68F";
        /// <summary>
        /// 增加
        /// </summary>
        public const string ADD5 = "\uE617";
        /// <summary>
        /// 增加
        /// </summary>
        public const string ADD6 = "\uE609";
        /// <summary>
        /// 增加
        /// </summary>
        public const string ADD7 = "\uE64F";
        /// <summary>
        /// 链接
        /// </summary>
        public const string LINK1 = "\uE61C";
        /// <summary>
        /// 链接
        /// </summary>
        public const string LINK2 = "\uE659";
        /// <summary>
        /// 链接
        /// </summary>
        public const string LINK3 = "\uE661";
        /// <summary>
        /// 链接
        /// </summary>
        public const string LINK4 = "\uE749";
        /// <summary>
        /// 链接
        /// </summary>
        public const string LINK5 = "\uEA24";
        /// <summary>
        /// 链接
        /// </summary>
        public const string LINK6 = "\uE612";
        /// <summary>
        /// 链接
        /// </summary>
        public const string LINK7 = "\uE6E8";
        /// <summary>
        /// WIFI
        /// </summary>
        public const string WIFI1 = "\uEDA9";
        /// <summary>
        /// USB
        /// </summary>
        public const string USB = "\uE63F";
        /// <summary>
        /// 下
        /// </summary>
        public const string DOWN = "\uE8D9";
        /// <summary>
        /// API
        /// </summary>
        public const string API = "\uE660";
        /// <summary>
        /// WIFI
        /// </summary>
        public const string WIFI2 = "\uE7E0";
        /// <summary>
        /// 机器
        /// </summary>
        public const string MACHINE5 = "\uE611";
        /// <summary>
        /// 上传
        /// </summary>
        public const string UPLOAD1 = "\uE8C6";
        /// <summary>
        /// 退出
        /// </summary>
        public const string OUT1 = "\uE60C";
        /// <summary>
        /// 上传
        /// </summary>
        public const string UPLOAD2 = "\uE65E";
        /// <summary>
        /// 隐藏
        /// </summary>
        public const string HIDE = "\uE8D5";
        /// <summary>
        /// 隐藏
        /// </summary>
        public const string VISIBLE = "\uE88B";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM1 = "\uE604";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM2 = "\uE695";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM3 = "\uE648";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM4 = "\uE61D";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM5 = "\uE606";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM6 = "\uE614";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM7 = "\uE890";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM8 = "\uE716";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM9 = "\uEC72";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM10 = "\uE610";
        /// <summary>
        /// 闹钟
        /// </summary>
        public const string ALARM11 = "\uE7CE";
        /// <summary>
        /// 向前
        /// </summary>
        public const string PREV1 = "\uE8F6";
        /// <summary>
        /// 向后
        /// </summary>
        public const string NEXT1 = "\uE8F7";
        /// <summary>
        /// 向前
        /// </summary>
        public const string PREV2 = "\uEB8E";
        /// <summary>
        /// 向后
        /// </summary>
        public const string NEXT2 = "\uE632";
        /// <summary>
        /// 向后
        /// </summary>
        public const string NEXT3 = "\uE76C";
        /// <summary>
        /// 向前
        /// </summary>
        public const string PREV3 = "\uE8EF";
        /// <summary>
        /// 向后
        /// </summary>
        public const string NEXT4 = "\uE8F1";
        /// <summary>
        /// 向前
        /// </summary>
        public const string PREV4 = "\uEB06";
        /// <summary>
        /// 向后
        /// </summary>
        public const string NEXT5 = "\uEB07";
        /// <summary>
        /// 向后
        /// </summary>
        public const string NEXT6 = "\uEB15";
        /// <summary>
        /// 左
        /// </summary>
        public const string LEFT = "\uE657";
        /// <summary>
        /// 右
        /// </summary>
        public const string RIGHT = "\uE658";
        /// <summary>
        /// 向前
        /// </summary>
        public const string PREV5 = "\uE636";
        /// <summary>
        /// 刷新
        /// </summary>
        public const string REFRESH = "\uE644";
        /// <summary>
        /// 用户
        /// </summary>
        public const string USER1 = "\uE639";
        /// <summary>
        /// 用户
        /// </summary>
        public const string USER2 = "\uE623";
        /// <summary>
        /// 用户
        /// </summary>
        public const string USER3 = "\uE62D";
        /// <summary>
        /// 时间
        /// </summary>
        public const string TIME1 = "\uE665";
        /// <summary>
        /// 温度
        /// </summary>
        public const string WENDU1 = "\uE631";
        /// <summary>
        /// 时间
        /// </summary>
        public const string TIME2 = "\uE8C5";
        /// <summary>
        /// 温度
        /// </summary>
        public const string WENDU2 = "\uE643";
        /// <summary>
        /// 温度
        /// </summary>
        public const string WENDU3 = "\uE89E";
        /// <summary>
        /// 数据
        /// </summary>
        public const string DATA1 = "\uE615";
        /// <summary>
        /// 数据
        /// </summary>
        public const string DATA2 = "\uE93A";
        /// <summary>
        /// 数据
        /// </summary>
        public const string DATA3 = "\uE940";
        /// <summary>
        /// 数据
        /// </summary>
        public const string DATA4 = "\uE941";
        /// <summary>
        /// 配方
        /// </summary>
        public const string PEIFANG1 = "\uE683";
        /// <summary>
        /// 配方
        /// </summary>
        public const string PEIFANG2 = "\uE681";
        /// <summary>
        /// 最小化
        /// </summary>
        public const string MIN1 = "\uE65A";
        /// <summary>
        /// 最小化
        /// </summary>
        public const string MIN2 = "\uE67A";
        /// <summary>
        /// 还原
        /// </summary>
        public const string RESTORE1 = "\uE608";
        /// <summary>
        /// 最大化
        /// </summary>
        public const string MAX1 = "\uEB11";
        /// <summary>
        /// 还原
        /// </summary>
        public const string RESTORE2 = "\uE667";
        /// <summary>
        /// 最大化
        /// </summary>
        public const string MAX2 = "\uEB99";
        /// <summary>
        /// 磁盘
        /// </summary>
        public const string DISK = "\uE602";
        /// <summary>
        /// CPU
        /// </summary>
        public const string CPU3 = "\uE641";
        /// <summary>
        /// 尺子
        /// </summary>
        public const string RULER = "\uE60D";
        /// <summary>
        /// GPU
        /// </summary>
        public const string GPU2 = "\uE6E6";
        /// <summary>
        /// 关闭
        /// </summary>
        public const string CLOSE = "\uE64D";
        /// <summary>
        /// 列表
        /// </summary>
        public const string LIST1 = "\uE60B";
        /// <summary>
        /// 列表
        /// </summary>
        public const string LIST2 = "\uE60E";
        /// <summary>
        /// 电脑
        /// </summary>
        public const string COMPUTER2 = "\uE601";
        /// <summary>
        /// 设置
        /// </summary>
        public const string SETTING = "\uE892";
        /// <summary>
        /// 退出
        /// </summary>
        public const string OUT2 = "\uE893";
        /// <summary>
        /// 图片
        /// </summary>
        public const string PIC1 = "\uE795";
        /// <summary>
        /// 首页
        /// </summary>
        public const string HOME = "\uE62E";
        /// <summary>
        /// 返回
        /// </summary>
        public const string BACK = "\uE60F";
        /// <summary>
        /// 盾
        /// </summary>
        public const string SAFE2 = "\uE62F";
        /// <summary>
        /// 锁
        /// </summary>
        public const string LOCK1 = "\uE8B2";
        /// <summary>
        /// 用户
        /// </summary>
        public const string USER = "\uE60A";
        /// <summary>
        /// 开始
        /// </summary>
        public const string START = "\uEDAA";
        /// <summary>
        /// 停止
        /// </summary>
        public const string STOP = "\uEDAB";
        /// <summary>
        /// 0
        /// </summary>
        public const string ZERO = "\uEDAC";
        /// <summary>
        /// 1
        /// </summary>
        public const string ONE = "\uEDAD";
        /// <summary>
        /// 2
        /// </summary>
        public const string TWO = "\uEDAE";
        /// <summary>
        /// 3
        /// </summary>
        public const string THREE = "\uEDAF";
        /// <summary>
        /// 4
        /// </summary>
        public const string FOUR = "\uEDB0";
        /// <summary>
        /// 5
        /// </summary>
        public const string FIVE = "\uEDB1";
        /// <summary>
        /// 6
        /// </summary>
        public const string SIX = "\uEDB2";
        /// <summary>
        /// 7
        /// </summary>
        public const string SEVEN = "\uEDB3";
        /// <summary>
        /// 8
        /// </summary>
        public const string EIGHT = "\uEDB4";
        /// <summary>
        /// 9
        /// </summary>
        public const string NIGHT = "\uEDB5";
        /// <summary>
        /// 小于号
        /// </summary>
        public const string LESS = "\uEDB6";
        /// <summary>
        /// =
        /// </summary>
        public const string EQUAL = "\uEDB7";
        /// <summary>
        /// 大于号
        /// </summary>
        public const string MORE = "\uEDB8";
        /// <summary>
        /// ?
        /// </summary>
        public const string ANY = "\uEDB9";
        /// <summary>
        /// @
        /// </summary>
        public const string AT = "\uEDBA";
        /// <summary>
        /// A
        /// </summary>
        public const string A = "\uEDBB";
        /// <summary>
        /// B
        /// </summary>
        public const string B = "\uEDBC";
        /// <summary>
        /// C
        /// </summary>
        public const string C = "\uEDBD";
        /// <summary>
        /// D
        /// </summary>
        public const string D = "\uEDBE";
        /// <summary>
        /// E
        /// </summary>
        public const string E = "\uEDBF";
        /// <summary>
        /// F
        /// </summary>
        public const string F = "\uEDC0";
        /// <summary>
        /// G
        /// </summary>
        public const string G = "\uEDC1";
        /// <summary>
        /// H
        /// </summary>
        public const string H = "\uEDC2";
        /// <summary>
        /// I
        /// </summary>
        public const string I = "\uEDC3";
        /// <summary>
        /// J
        /// </summary>
        public const string J = "\uEDC4";
        /// <summary>
        /// K
        /// </summary>
        public const string K = "\uEDC5";
        /// <summary>
        /// L
        /// </summary>
        public const string L = "\uEDC6";
        /// <summary>
        /// M
        /// </summary>
        public const string M = "\uEDC7";
        /// <summary>
        /// N
        /// </summary>
        public const string N = "\uEDC8";
        /// <summary>
        /// O
        /// </summary>
        public const string O = "\uEDC9";
        /// <summary>
        /// P
        /// </summary>
        public const string P = "\uEDCA";
        /// <summary>
        /// 
        /// </summary>
        public const string Q = "\uEDCB";
        /// <summary>
        /// R
        /// </summary>
        public const string R = "\uEDCC";
        /// <summary>
        /// S
        /// </summary>
        public const string S = "\uEDCD";
        /// <summary>
        /// T
        /// </summary>
        public const string T = "\uEDCE";
        /// <summary>
        /// U
        /// </summary>
        public const string U = "\uEDCF";
        /// <summary>
        /// V
        /// </summary>
        public const string V = "\uEDD0";
        /// <summary>
        /// W
        /// </summary>
        public const string W = "\uEDD1";
        /// <summary>
        /// X
        /// </summary>
        public const string X = "\uEDD2";
        /// <summary>
        /// Y
        /// </summary>
        public const string Y = "\uEDD3";
        /// <summary>
        /// Z
        /// </summary>
        public const string Z = "\uEDD4";
    }

}
